home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 February
/
Gamestar_81_2006-02_dvd.iso
/
Red Shark
/
Common
/
BaseForest.script
< prev
next >
Wrap
Text File
|
2001-12-10
|
1KB
|
42 lines
//-------------------------------------------------------------------
//
// This code is copyright 2001 by G5 Software.
// Any unauthorized usage, either in part or in whole of this code
// is strictly prohibited. Violators WILL be prosecuted to the
// maximum extent allowed by law.
//
//-------------------------------------------------------------------
class CBaseForest
{
void CBaseForest()
{
Core_AddClassificator(CLASSIFICATOR_NO_WEAPON_COLLISION);
}
float TreeVertScale = 20.0;
float TreeHorScale = 5.0;
int TreeBurnDelayMsec = 4000;
string FireEffectId = "EFFECTID_TreeExplosionEffect";
string ExplosionSoundId = "SOUNDID_TreeExplosionSound";
float MaxForestDetail = 1.0;
float TargetScreenForestDetail = 0.5;
void OnDetonation(
string _SourceType, // source type (explosion type)
matrix _SourcePlace, // source place
float _Radius // damage radius
)
{
if (_SourceType == "SphericExplosion")
{
CutTrees(_SourcePlace, _Radius);
}
else
if (_SourceType == "WaveExplosion")
{
CutTrees(_SourcePlace, _Radius);
}
}
}